package com.study.spmongodb.wwj.juc.utils.complete;

import java.util.concurrent.CompletableFuture;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/16 21:11
 */
public class CompletableFutureExample1 {

    public static void main(String[] args) {

        CompletableFuture.runAsync(() -> {
            System.out.println("-----");
        }).whenComplete((v, t) -> System.out.println("Done"));
        System.out.println("i an not block");

    }
}
